package studysystem.demo.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class Learner {

    private String phone;//主键
    private String password;
    private String password2;
    private String oldpassword;
    private String name;
    private String sex;
    private String userid;
    private String role;
    private String coursedir;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date rgsttime;

    public String getCoursedir() {
        return coursedir;
    }

    public void setCoursedir(String coursedir) {
        this.coursedir = coursedir;
    }

    public  String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone =phone == null ? null : phone.trim();
    }

    public String getPassword() {
        return password;
    }

    public String getPassword2() {
        return password2;
    }

    public void setPassword2(String password2) {
        this.password2 = password2;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid == null ? null : userid.trim();
    }

    public Date getRgsttime() {
        return rgsttime;
    }

    public void setRgsttime(Date rgsttime) {
        this.rgsttime = rgsttime;
    }

    public String getOldpassword() {
        return oldpassword;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role == null ? null : role.trim();
    }

    public void setOldpassword(String oldpassword) {
        this.oldpassword = oldpassword == null ? null : oldpassword.trim();
    }
}